/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package com.rd.xsd.common;

import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Choice</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link com.rd.xsd.common.Choice#getOption <em>Option</em>}</li>
 *   <li>{@link com.rd.xsd.common.Choice#getSelected <em>Selected</em>}</li>
 * </ul>
 * </p>
 *
 * @see com.rd.xsd.common.CommonPackage#getChoice()
 * @model extendedMetaData="name='Choice' kind='elementOnly'"
 * @generated
 */
public interface Choice extends EObject {
	/**
	 * Returns the value of the '<em><b>Option</b></em>' containment reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Option</em>' containment reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Option</em>' containment reference.
	 * @see #setOption(Option)
	 * @see com.rd.xsd.common.CommonPackage#getChoice_Option()
	 * @model containment="true" required="true"
	 *        extendedMetaData="kind='element' name='option'"
	 * @generated
	 */
	Option getOption();

	/**
	 * Sets the value of the '{@link com.rd.xsd.common.Choice#getOption <em>Option</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Option</em>' containment reference.
	 * @see #getOption()
	 * @generated
	 */
	void setOption(Option value);

	/**
	 * Returns the value of the '<em><b>Selected</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Selected</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Selected</em>' attribute.
	 * @see #isSetSelected()
	 * @see #unsetSelected()
	 * @see #setSelected(int)
	 * @see com.rd.xsd.common.CommonPackage#getChoice_Selected()
	 * @model unsettable="true" dataType="org.eclipse.emf.ecore.xml.type.Int"
	 *        extendedMetaData="kind='attribute' name='selected'"
	 * @generated
	 */
	int getSelected();

	/**
	 * Sets the value of the '{@link com.rd.xsd.common.Choice#getSelected <em>Selected</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Selected</em>' attribute.
	 * @see #isSetSelected()
	 * @see #unsetSelected()
	 * @see #getSelected()
	 * @generated
	 */
	void setSelected(int value);

	/**
	 * Unsets the value of the '{@link com.rd.xsd.common.Choice#getSelected <em>Selected</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isSetSelected()
	 * @see #getSelected()
	 * @see #setSelected(int)
	 * @generated
	 */
	void unsetSelected();

	/**
	 * Returns whether the value of the '{@link com.rd.xsd.common.Choice#getSelected <em>Selected</em>}' attribute is set.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return whether the value of the '<em>Selected</em>' attribute is set.
	 * @see #unsetSelected()
	 * @see #getSelected()
	 * @see #setSelected(int)
	 * @generated
	 */
	boolean isSetSelected();

} // Choice
